﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NGUYENTHANHDONG.Excercise_lv2.Bai4
{
    class MODELS
    {
        public double TinhToan(UserEntity objUser)
        {
            if(objUser.LUACHON == 1)
            {
                return (objUser.WIDTH + objUser.HEIGHT) / 2;
            }
            return objUser.HEIGHT * objUser.WIDTH;
        }
    }
}
